{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right">
			<a class="btn btn-primary" href="{:url('category_add')}">新 增</a>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive clearfix">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>标题</th>
						<th>icon</th> 
						<th>排序</th>
						<th>更新日期</th>
                                                <th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="item"}
					<tr>
						<td>{$item['id']}</td>
						<td>{$item['name']}</td>
                                                <td><img src="{$item['url']}" width="50" height="50"></td>
                                                <td>{$item['sort']}</td>
						<td>{$item['update_time']|date='Y-m-d H:i',###}</td>
						<td>
                                                      <a title="编辑" href="{:url('category_edit?id='.$item['id'])}">编辑</a>
						      <a title="删除" href="{:url('category_delete?id='.$item['id'])}" class="confirm ajax-get">删除</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$list->render()}
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
<script type="text/javascript">
</script>
{/block}